# s = "abcde"
# 把最左侧的字符，给放到最右侧去
def rotateString(s, goal):
    if len(s) != len(goal):
        return False
    return goal in (s + s)


print(rotateString("abcde", "cdeab"))
print(rotateString("abcde", "edcba"))
